# $Id: PKGBUILD 87594 2013-04-03 15:20:03Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Simon Lipp <sloonz+aur@gmail.com>
# Maintainer: Stefan Husmann < stefan-husmann@t-online.de>

pkgname=java-commons-logging
pkgver=1.1.2
pkgrel=1
pkgdesc="Wrapper interface for logging APIs in Java"
arch=('any')
url="http://commons.apache.org/logging/"
license=(APACHE)
depends=('java-runtime')
source=("http://apache.crihan.fr/dist/commons/logging/binaries/commons-logging-$pkgver-bin.tar.gz"
	"http://apache.crihan.fr/dist/commons/logging/source/commons-logging-$pkgver-src.tar.gz")
md5sums=('0fd3ed7847618ae8ca281f2259bc2866'
         '8928a44ded8fb362974fa303900773d6')

build() {
  # TODO: build from sources
  true
}

package() {
  install -d $pkgdir/usr/share/java/commons-logging/
  install --mode=644 \
    $srcdir/commons-logging-$pkgver/commons-logging-$pkgver.jar \
    $pkgdir/usr/share/java/commons-logging/commons-logging.jar
  install --mode=644 \
    $srcdir/commons-logging-$pkgver/commons-logging-api-$pkgver.jar \
    $pkgdir/usr/share/java/commons-logging/commons-logging-api.jar
  install --mode=644 \
    $srcdir/commons-logging-$pkgver/commons-logging-adapters-$pkgver.jar \
    $pkgdir/usr/share/java/commons-logging/commons-logging-adapters.jar
}
